package com.xizi.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.xizi.mapper") //指定要变成实现类的接口所在的包位置
public class UserConfig {

    // mp分页插件
    @Bean
    public PaginationInterceptor PaginationInnerInterceptor(){
        return new PaginationInterceptor();
    }

}
